@extends('common')
@section('content')
<style type="text/css">
    span{
        margin-left: 20px;
    }
</style>
<table class="table table-bordered table-hover definewidth m10" style="width:1200px;margin-left:10px;">
	<tr>
		<td>
			<br><span>
			 	车型 : 
			 	<select name="" id="">
					<option value="">全部</option>
				</select>
			</span>
			<span>
				教练车型 : 
				<select name="" id="">
					<option value="">全部</option>
				</select>
			</span>
			<span>
				状态 : 
				<select name="" id="">
					<option value="">全部</option>
				</select>
			</span>
			<span><button type="submit" class="btn btn-primary">新增车辆</button></span>
			<span><button type="submit" class="btn btn-primary">导出</button></span>
			<br><br>
			<span>
				车牌号 : <input type="text">
			</span>
			<span>
				行驶证 : <input type="text">
			</span>
			<span>
				日期 : <input type="text" value="2016-4-23">
			</span>
			<span><button type="submit" class="btn btn-primary">查询</button></span>
			
			<br><br>
		</td>
	</tr>
</table>
<table class="table table-bordered table-hover definewidth m10" style="width:1200px;margin-left:10px;">
		<th>车辆</th>
		<th>7:00-8:00</th>
		<th>8:00-9:00</th>
		<th>9:00-10:00</th>
		<th>10:00-11:00</th>
		<th>11:00-12:00</th>
		<th>12:30-14:30</th>
		<th>13:30-14:30</th>
		<th>14:30-15:30</th>
		<th>15:30-16:30</th>
		<th>16:30-17:30</th>
		<th>18:00-19:00</th>
		<th>19:00-20:00</th>
		<th>20:00-21:00</th>
	@foreach($arr as $k=>$v)
	<tr>
		<td>{{$v['c_num']}}</td>
		@if(!empty($v['info']))
			@foreach($v['info'] as $kk=>$vv)
				@if($vv['ca_state']==0)
					<td><span style="color:red">空车</span></td>
		        @else
		        	<td><span style="color:#009900">已排课</span></td>
		        @endif
		    @endforeach
	    @else
	    	@for($i=0;$i<13;$i++)
	    		<td><span style="color:red">空车</span></td>
	    	@endfor
	    @endif    
	</tr>
	@endforeach
</table>
@stop